package com.pengliu.common.bean;

import com.pengliu.common.mybatis.model.ModelExample;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Date;

/**
 * @author pengliu
 */
public class OcrUserExample extends ModelExample implements Serializable {
    /**
	 * 这字段对应的数据库表 ocr_user
	 * @mbggenerated
	 */
	protected String orderByClause;
	/**
	 * 这字段对应的数据库表 ocr_user
	 * @mbggenerated
	 */
	protected boolean distinct;
	/**
	 * 这字段对应的数据库表 ocr_user
	 * @mbggenerated
	 */
	protected List<Criteria> oredCriteria;
	/**
	 * 这字段对应的数据库表 ocr_user
	 * @mbggenerated
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 此方法对应于数据库表 ocr_user
	 * @mbggenerated
	 */
	public OcrUserExample() {
		oredCriteria = new ArrayList<Criteria>();
	}

	/**
	 * 此方法对应于数据库表 ocr_user
	 * @mbggenerated
	 */
	@Override
	public void setOrderByClause(String orderByClause) {
		this.orderByClause = orderByClause;
	}

	/**
	 * 此方法对应于数据库表 ocr_user
	 * @mbggenerated
	 */
	public String getOrderByClause() {
		return orderByClause;
	}

	/**
	 * 此方法对应于数据库表 ocr_user
	 * @mbggenerated
	 */
	public void setDistinct(boolean distinct) {
		this.distinct = distinct;
	}

	/**
	 * 此方法对应于数据库表 ocr_user
	 * @mbggenerated
	 */
	public boolean isDistinct() {
		return distinct;
	}

	/**
	 * 此方法对应于数据库表 ocr_user
	 * @mbggenerated
	 */
	public List<Criteria> getOredCriteria() {
		return oredCriteria;
	}

	/**
	 * 此方法对应于数据库表 ocr_user
	 * @mbggenerated
	 */
	public void or(Criteria criteria) {
		oredCriteria.add(criteria);
	}

	/**
	 * 此方法对应于数据库表 ocr_user
	 * @mbggenerated
	 */
	public Criteria or() {
		Criteria criteria = createCriteriaInternal();
		oredCriteria.add(criteria);
		return criteria;
	}

	/**
	 * 此方法对应于数据库表 ocr_user
	 * @mbggenerated
	 */
	public Criteria createCriteria() {
		Criteria criteria = createCriteriaInternal();
		if (oredCriteria.size() == 0) {
			oredCriteria.add(criteria);
		}
		return criteria;
	}

	/**
	 * 此方法对应于数据库表 ocr_user
	 * @mbggenerated
	 */
	protected Criteria createCriteriaInternal() {
		Criteria criteria = new Criteria();
		return criteria;
	}

	/**
	 * 此方法对应于数据库表 ocr_user
	 * @mbggenerated
	 */
	public void clear() {
		oredCriteria.clear();
		orderByClause = null;
		distinct = false;
	}

	/**
	 * 此方法对应于数据库表 ocr_user
	 * @mbggenerated
	 */
	public Criteria getCriteria() {
		if (oredCriteria.size() == 0) {
			createCriteria();
		}
		return oredCriteria.get(0);
	}

	/**
	 * 此方法对应于数据库表 ocr_user
	 * @mbggenerated
	 */
	@Override
	public void addCriteria(List<Criterion> criteria) {
		getCriteria().getCriteria().addAll(criteria);
	}

	/**
	 * This class was generated by MyBatis Generator. This class corresponds to the database table ocr_user
	 * @mbggenerated
	 */
	protected abstract static class GeneratedCriteria implements Serializable {
		protected List<Criterion> criteria;
		private boolean ignoreNull;

		private boolean isIgnoreNull() {
			return ignoreNull;
		}

		public Criteria ignoreNull() {
			this.ignoreNull = true;
			return (Criteria) this;
		}

		protected void addCriterion(String condition) {
			if (condition == null) {
				if (!isIgnoreNull()) {
					throw new RuntimeException("条件的值不能为空");
				}
			} else {
				criteria.add(new Criterion(condition));
			}
		}

		protected void addCriterion(String condition, Object value, String property) {
			if (value == null) {
				if (!isIgnoreNull()) {
					throw new RuntimeException("条件: " + property + " 是为Null");
				}
			} else {
				criteria.add(new Criterion(condition, value));
			}
		}

		protected void addCriterion(String condition, Object value1, Object value2, String property) {
			if (value1 == null || value2 == null) {
				if (!isIgnoreNull()) {
					throw new RuntimeException("Between 的条件值: " + property + " 是为Null");
				}
			} else {
				criteria.add(new Criterion(condition, value1, value2));
			}
		}

		protected GeneratedCriteria() {
			super();
			criteria = new ArrayList<Criterion>();
		}

		public boolean isValid() {
			return criteria.size() > 0;
		}

		public List<Criterion> getAllCriteria() {
			return criteria;
		}

		public List<Criterion> getCriteria() {
			return criteria;
		}

		public Criteria andIdIsNull() {
			addCriterion("id is null");
			return (Criteria) this;
		}

		public Criteria andIdIsNotNull() {
			addCriterion("id is not null");
			return (Criteria) this;
		}

		public Criteria andIdEqualTo(Integer value) {
			addCriterion("id =", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdNotEqualTo(Integer value) {
			addCriterion("id <>", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdGreaterThan(Integer value) {
			addCriterion("id >", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdGreaterThanOrEqualTo(Integer value) {
			addCriterion("id >=", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdLessThan(Integer value) {
			addCriterion("id <", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdLessThanOrEqualTo(Integer value) {
			addCriterion("id <=", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdIn(List<Integer> values) {
			addCriterion("id in", values, "id");
			return (Criteria) this;
		}

		public Criteria andIdNotIn(List<Integer> values) {
			addCriterion("id not in", values, "id");
			return (Criteria) this;
		}

		public Criteria andIdBetween(Integer value1, Integer value2) {
			addCriterion("id between", value1, value2, "id");
			return (Criteria) this;
		}

		public Criteria andIdNotBetween(Integer value1, Integer value2) {
			addCriterion("id not between", value1, value2, "id");
			return (Criteria) this;
		}

		public Criteria andUserNameIsNull() {
			addCriterion("user_name is null");
			return (Criteria) this;
		}

		public Criteria andUserNameIsNotNull() {
			addCriterion("user_name is not null");
			return (Criteria) this;
		}

		public Criteria andUserNameEqualTo(String value) {
			addCriterion("user_name =", value, "userName");
			return (Criteria) this;
		}

		public Criteria andUserNameNotEqualTo(String value) {
			addCriterion("user_name <>", value, "userName");
			return (Criteria) this;
		}

		public Criteria andUserNameGreaterThan(String value) {
			addCriterion("user_name >", value, "userName");
			return (Criteria) this;
		}

		public Criteria andUserNameGreaterThanOrEqualTo(String value) {
			addCriterion("user_name >=", value, "userName");
			return (Criteria) this;
		}

		public Criteria andUserNameLessThan(String value) {
			addCriterion("user_name <", value, "userName");
			return (Criteria) this;
		}

		public Criteria andUserNameLessThanOrEqualTo(String value) {
			addCriterion("user_name <=", value, "userName");
			return (Criteria) this;
		}

		public Criteria andUserNameLike(String value) {
			addCriterion("user_name like", value, "userName");
			return (Criteria) this;
		}

		public Criteria andUserNameNotLike(String value) {
			addCriterion("user_name not like", value, "userName");
			return (Criteria) this;
		}

		public Criteria andUserNameIn(List<String> values) {
			addCriterion("user_name in", values, "userName");
			return (Criteria) this;
		}

		public Criteria andUserNameNotIn(List<String> values) {
			addCriterion("user_name not in", values, "userName");
			return (Criteria) this;
		}

		public Criteria andUserNameBetween(String value1, String value2) {
			addCriterion("user_name between", value1, value2, "userName");
			return (Criteria) this;
		}

		public Criteria andUserNameNotBetween(String value1, String value2) {
			addCriterion("user_name not between", value1, value2, "userName");
			return (Criteria) this;
		}

		public Criteria andPassWordIsNull() {
			addCriterion("pass_word is null");
			return (Criteria) this;
		}

		public Criteria andPassWordIsNotNull() {
			addCriterion("pass_word is not null");
			return (Criteria) this;
		}

		public Criteria andPassWordEqualTo(String value) {
			addCriterion("pass_word =", value, "passWord");
			return (Criteria) this;
		}

		public Criteria andPassWordNotEqualTo(String value) {
			addCriterion("pass_word <>", value, "passWord");
			return (Criteria) this;
		}

		public Criteria andPassWordGreaterThan(String value) {
			addCriterion("pass_word >", value, "passWord");
			return (Criteria) this;
		}

		public Criteria andPassWordGreaterThanOrEqualTo(String value) {
			addCriterion("pass_word >=", value, "passWord");
			return (Criteria) this;
		}

		public Criteria andPassWordLessThan(String value) {
			addCriterion("pass_word <", value, "passWord");
			return (Criteria) this;
		}

		public Criteria andPassWordLessThanOrEqualTo(String value) {
			addCriterion("pass_word <=", value, "passWord");
			return (Criteria) this;
		}

		public Criteria andPassWordLike(String value) {
			addCriterion("pass_word like", value, "passWord");
			return (Criteria) this;
		}

		public Criteria andPassWordNotLike(String value) {
			addCriterion("pass_word not like", value, "passWord");
			return (Criteria) this;
		}

		public Criteria andPassWordIn(List<String> values) {
			addCriterion("pass_word in", values, "passWord");
			return (Criteria) this;
		}

		public Criteria andPassWordNotIn(List<String> values) {
			addCriterion("pass_word not in", values, "passWord");
			return (Criteria) this;
		}

		public Criteria andPassWordBetween(String value1, String value2) {
			addCriterion("pass_word between", value1, value2, "passWord");
			return (Criteria) this;
		}

		public Criteria andPassWordNotBetween(String value1, String value2) {
			addCriterion("pass_word not between", value1, value2, "passWord");
			return (Criteria) this;
		}

		public Criteria andSysUserIdIsNull() {
			addCriterion("sys_user_id is null");
			return (Criteria) this;
		}

		public Criteria andSysUserIdIsNotNull() {
			addCriterion("sys_user_id is not null");
			return (Criteria) this;
		}

		public Criteria andSysUserIdEqualTo(Integer value) {
			addCriterion("sys_user_id =", value, "sysUserId");
			return (Criteria) this;
		}

		public Criteria andSysUserIdNotEqualTo(Integer value) {
			addCriterion("sys_user_id <>", value, "sysUserId");
			return (Criteria) this;
		}

		public Criteria andSysUserIdGreaterThan(Integer value) {
			addCriterion("sys_user_id >", value, "sysUserId");
			return (Criteria) this;
		}

		public Criteria andSysUserIdGreaterThanOrEqualTo(Integer value) {
			addCriterion("sys_user_id >=", value, "sysUserId");
			return (Criteria) this;
		}

		public Criteria andSysUserIdLessThan(Integer value) {
			addCriterion("sys_user_id <", value, "sysUserId");
			return (Criteria) this;
		}

		public Criteria andSysUserIdLessThanOrEqualTo(Integer value) {
			addCriterion("sys_user_id <=", value, "sysUserId");
			return (Criteria) this;
		}

		public Criteria andSysUserIdIn(List<Integer> values) {
			addCriterion("sys_user_id in", values, "sysUserId");
			return (Criteria) this;
		}

		public Criteria andSysUserIdNotIn(List<Integer> values) {
			addCriterion("sys_user_id not in", values, "sysUserId");
			return (Criteria) this;
		}

		public Criteria andSysUserIdBetween(Integer value1, Integer value2) {
			addCriterion("sys_user_id between", value1, value2, "sysUserId");
			return (Criteria) this;
		}

		public Criteria andSysUserIdNotBetween(Integer value1, Integer value2) {
			addCriterion("sys_user_id not between", value1, value2, "sysUserId");
			return (Criteria) this;
		}

		public Criteria andEnableStateIsNull() {
			addCriterion("enable_state is null");
			return (Criteria) this;
		}

		public Criteria andEnableStateIsNotNull() {
			addCriterion("enable_state is not null");
			return (Criteria) this;
		}

		public Criteria andEnableStateEqualTo(Integer value) {
			addCriterion("enable_state =", value, "enableState");
			return (Criteria) this;
		}

		public Criteria andEnableStateNotEqualTo(Integer value) {
			addCriterion("enable_state <>", value, "enableState");
			return (Criteria) this;
		}

		public Criteria andEnableStateGreaterThan(Integer value) {
			addCriterion("enable_state >", value, "enableState");
			return (Criteria) this;
		}

		public Criteria andEnableStateGreaterThanOrEqualTo(Integer value) {
			addCriterion("enable_state >=", value, "enableState");
			return (Criteria) this;
		}

		public Criteria andEnableStateLessThan(Integer value) {
			addCriterion("enable_state <", value, "enableState");
			return (Criteria) this;
		}

		public Criteria andEnableStateLessThanOrEqualTo(Integer value) {
			addCriterion("enable_state <=", value, "enableState");
			return (Criteria) this;
		}

		public Criteria andEnableStateIn(List<Integer> values) {
			addCriterion("enable_state in", values, "enableState");
			return (Criteria) this;
		}

		public Criteria andEnableStateNotIn(List<Integer> values) {
			addCriterion("enable_state not in", values, "enableState");
			return (Criteria) this;
		}

		public Criteria andEnableStateBetween(Integer value1, Integer value2) {
			addCriterion("enable_state between", value1, value2, "enableState");
			return (Criteria) this;
		}

		public Criteria andEnableStateNotBetween(Integer value1, Integer value2) {
			addCriterion("enable_state not between", value1, value2, "enableState");
			return (Criteria) this;
		}

		public Criteria andCreateTimeIsNull() {
			addCriterion("create_time is null");
			return (Criteria) this;
		}

		public Criteria andCreateTimeIsNotNull() {
			addCriterion("create_time is not null");
			return (Criteria) this;
		}

		public Criteria andCreateTimeEqualTo(Date value) {
			addCriterion("create_time =", value, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeNotEqualTo(Date value) {
			addCriterion("create_time <>", value, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeGreaterThan(Date value) {
			addCriterion("create_time >", value, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
			addCriterion("create_time >=", value, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeLessThan(Date value) {
			addCriterion("create_time <", value, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
			addCriterion("create_time <=", value, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeIn(List<Date> values) {
			addCriterion("create_time in", values, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeNotIn(List<Date> values) {
			addCriterion("create_time not in", values, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeBetween(Date value1, Date value2) {
			addCriterion("create_time between", value1, value2, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
			addCriterion("create_time not between", value1, value2, "createTime");
			return (Criteria) this;
		}
	}

	/**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table ocr_user
     *
     * @mbggenerated do_not_delete_during_merge
     */
    public static class Criteria extends GeneratedCriteria implements Serializable {

        protected Criteria() {
            super();
        }
    }
}